package com.jin.webvideo.videoCache.policy.condition;

/**
 * 单目运算符抽象类
 * @param <T>
 */
public abstract class MonocularCondition<T> implements Condition<T>{
    private Condition<T> condition;
    public MonocularCondition(Condition<T> condition){
        this.condition = condition;
    }
    public abstract boolean compute(Condition<T> condition, T data);
    @Override
    public boolean compute(T t) {
        return compute(condition, t);
    }
}
